// =================================================================
// File: Block.h
// Desc: Contains Block class used for storing cached data
// =================================================================

#ifndef BLOCK_H
#define BLOCK_H

// =================================================================
// INCLUDES
// =================================================================
#include "config.h"

// =================================================================
// CLASSES
// =================================================================

// =================================================================
// Name: Block
// Desc: Used to store data in memory to simulate caching
// =================================================================
class Block
{
	public:
		Block(char *bytes);
		~Block();
    
   char *GetBytes();
   char GetByte(int index);
   void SetByte(char byte, int index);
   void SetBytes(char *bytes);

	private:
		char bytes[BLOCK_SIZE];	// Represents a block of data
};
#endif // BLOCK_H
